/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Microsoft YaHei";
  // font-family: "system-ui";
  // font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-text-size-adjust: none;
  // 防止误触选中内容
  user-select: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

img[src=""], img:not([src]) {
  opacity: 0;
}

// 不显示滚动条
* {
  scrollbar-width: none;
  &::-webkit-scrollbar {
    width: 0px!important;
    display: none;
  }
}

// 一行省略号
.text-eli {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
// 两行省略号
.two-eli {
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  overflow:hidden;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

html, body, #app {
  height: 100%;
}

.van-toast {
  width: max-content;
}
// toast 自定义类需写在 #app 外
.toastT {
  border-radius: 1rem;
  background: #fff;
  color: #141414;
  font-size: 0.14rem;
  padding: 0.1rem 0.18rem;
  box-shadow: 0 0 16px 1px #e2e2e2;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
}
.error {
  color: red;
}
.toastT-bottom {
  bottom: 0.15rem;
  line-height: 1.5;
}
.playerToast {
  border-radius: 1rem;
  background: #fff;
  color: #141414;
  font-size: .14rem;
  padding: .08rem .12rem;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 25vh;
  box-shadow: 0 0 .08rem -.03rem grey;
}

.keyBlue {
  color: #4f7db1;
}

// chrome input 覆盖自动填充样式
input:-internal-autofill-selected {
  background-color: transparent!important;
}

// 淡入
.fadeIn-enter, .fadeIn-leave-to {
  opacity: 0;
}
.fadeIn-enter-active, .fadeIn-leave-active {
  transition: all .5s;
}

.fadeInUp-enter-active, .fadeInUp-leave-active {
  transition: all .3s ease-out;
}
.fadeInUp-enter, .fadeInUp-leave-to {
  opacity: 0;
  transform: translateY(30%);
}

.fadeInDown-enter-active, .fadeInDown-leave-active {
  transition: all .25s ease-out;
}
.fadeInDown-enter, .fadeInDown-leave-to {
  opacity: 0;
  transform: translateY(-30%);
}

.scaleIcon-enter-active {
  animation: scaleIcon .5s;
}
.scaleIcon-leave-active {
  animation: scaleIcon .5s reverse;
}
@keyframes scaleIcon {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.error-tips {
  width: 2.1rem;
}